pixbufutils: Simplify function
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Sep 2021 16:17:44 +0000 (18:17 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 16 Sep 2021 02:00:41 +0000 (22:00 -0400)
gtk/gdkpixbufutils.c

index d1b6693918161d137f95f6681dfc86f7955bb7af..2b48d76943e0bfa220068869b75755f704782a30 100644 (file)
@@ -505,14 +505,7 @@ gtk_make_symbolic_pixbuf_from_file (GFile       *file,
 GdkTexture *
 gtk_load_symbolic_texture_from_resource (const char *path)
 {
-  GdkPixbuf *pixbuf;
-  GdkTexture *texture;
-
-  pixbuf = _gdk_pixbuf_new_from_resource (path, "png", NULL);
-  texture = gdk_texture_new_for_pixbuf (pixbuf);
-  g_object_unref (pixbuf);
-
-  return texture;
+  return gdk_texture_new_from_resource (path);
 }
 
 GdkTexture *